﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gadgeteer.Interfaces.Fakes.Tests
{
    [TestFixture]
    public class FakeRelayTest
    {
        [Test]
        public void ValidateOnOff()
        {
            var relay = new FakeRelay();

            Assert.That(relay.Enabled, Is.False);

            relay.TurnOn();
            Assert.That(relay.Enabled, Is.True);

            relay.TurnOff();
            Assert.That(relay.Enabled, Is.False);
        }
    }
}
